-@page_title ='文章管理'
%h1 发表新文章
= render 'form'
%br
= link_to '返回文章列表', articles_path,class: "btn btn-default"

%hr

%h3 最近上传的10张图片

%table.table.table-bordered#article-image-table
  %thead
    %tr
      %th 图片
      %th URL
  %tbody
    - @images.each do |image|
      %tr
        %td.col-md-2= image_tag image.picture.url, class:'img_responsive', style:'max-width: 300px'
        %td.col-md-9
          = text_field_tag '', image.picture.url, class: 'form-control input-lg'

= link_to '上传图片', images_path, class: 'btn btn-primary btn-sm'